how a relationship is built