add Pinmatrix functionality