change timeToWait

from i+1 to i