puzzle solved by Thiago beron