warning timer declared only once