preparations for tree relative positions calculator