add end_time to activities