changed notation form taskIndex1,2,3 -> taskIndex0,1,2