added a checker before updating updated_times and latest_update