update state at end of population update