set data for base, factory and subclasses