now places objects in the correct subtree