makes the histogram work now