simplified the max age test