Update the population after selection inside the selection function