changes for sync logic.