attr_type attribute made optional