inverted clear flag logic