refactored collection/collectionprototype to model/collection