better isFlush