tested and implementated setPartner