added created_at check functionality