refactoring settings_helper