edit the way histrogram are made