add calculation of encoders for each population