fixed api/subcollection
worked on models