set relationships in models