histogramm loop established