switching method getCollection to collection