modified inconsistencies with histogram construction