added preliminary scoreRelationships function