changed max age to milliseconds