fixed order of hooks in collection class