improve time range usage