made end_time nullable