cleaned up program after reading solution