refactoring the default value initialization