fixed bug - not assigning new population in each iteration