working on how keys work in the tree