added some code to help map ages to stages