added simple tree, could remove some excess parts