empty checking for solution