removed reps from the histogram function