with histogram check