adding ivars and type objects