respecting start and end time arguments