how to define the relationship