added default atts check in getDefaultsAtts method