remove unnecessary flush()