make timer variable global