updates to counter, set, and writer