fixed finding the ideal lowest