changed the maturity function to age based