add zero initialization of global matrix.