testing version of verify solution
fixing some errors