wrote sets and indexes updaters.