remove useless flush function