implemented flush?