run update tasks in 1 function