changed the solve to go faster