reset flags: subd and subc