removed  variable and methods for taskType