mate function implantation