figured out the flushing issue