added getter for histogram