getting histogram structure ironed out