fixed flush (to return a value)