use a set when accumulating cells