add a comment of flush() menthod