trying to solve puzzle