updated for time-event contains relations