added flush data