future programing logic manually added
POC of tree done and confirmed