define the relationship scan