max age detection