modify the matrix code package