get nodetype, print nodes