commit matrix code