updated age logic