catch case when no solution is found