remove unneeded resets, counter