return components object from define