reset matrix