made it so clear_all takes into account the collection