add sync method.