changed time to range