renamed method to "checksolution"