change simple classes to open structeres