playing with histograms and filtering