changes made to tasks code