thinking of using tree structure