added default attribute set to nil