renamed matrix to explicit type