committing modified matrix code