fix colletion prototypes too