cleaning up org chart code