added debug. working on subnodes