update and sync