add relations factory