make time range optional