now uses its local reference to logger
simplified calculation of popsize