trying throw an exception if no solution available