updates to histogram