updating the tasks