refactor sync completed