add the tasks conditions