added sync method