clean up the genetic algorithm