refactoring settings