refactoring default setting