transition to histogram