for sync.
removed unused code.
removed unused code