time limit loop