remove unnecessary non-nil attrib check