timer and updating task