flags ^= (1<<n)