updated getAgeRange method