update set matrix zeroes