working histogram WOOOOOO