corrected for time restrictions