replace Node.getTaskNumber with getTaskNumber