add timer and attach