added necessary type for currentNode