added constants for matrixmode