add subtrees only when current trees are not null