applied some changes to make partner order arr work