played with histogram bin width optimization