implemented sendMat by sending object