return nodes from methods