working
now using smarter code for negateSepFlag