right before writting all the tasks