update Preferences