update settings.cpp