implementation of collection scrub