update task type