remove depth attribute in node
remove un-needed currentDepth