correctly counting and scrubing