sync method