added initialization of the task