add sync

add sync method