fixed type-o in optimal matrix definition