realised a simple tree, time to debug it