added sync method 2