set matrix zeros reimpl