flush data