fixing waittime