updating and sync