after MultSMatrix function is ok