small changes to histogram