changed timer1 to timeout