first iteration of fitness function