little change for sync code