last step before sync