histogram equalization before hmc