A little clean up of histgraph code