more addition to the genetic algorithm function trait