task update routine