removed some now unnecessary code to reset tasks