refactored profiles and collections, material types, devices and software in profile.