change func Flush->Sync