matrix begin