debuging histogram computation
fix of merge conflicts.