sync logic needed work