updates settings.