diff hist matrix