remove redundant flush