update error_ctrl and matrix_conv