flushing now performed with sets