changes calculation of rates to reflect pop.struct
structure maybe working, migration missing