added sync check