checking histogram