returning if no solution is valid