added output time range filtering