Change where function knows about the 'collection' from