fixed determineRelationship call