puzzle solved by Michal Sz