setDefaultValue method  more functional