implement complexType attribute