add sync method