formatting
properly clean up the task variables