added growth rate function