updating timeWindow arg to be a start and end time