added error catching for updated_at