still working on the visitor, getting the logic down on all nodes