remove debug print statement and fix age and timestamp comparison