final fix of flush