add setRelationshipType method