implemented sync deleted for remote and local