more code for tree expansion