merge histogram changes