improved histograms and their test