refator relationship tree