change histogram API