validate age and enhance modularity