Used new getTree function related #4