finding a solution