attribute default value and type coerce