How do I reference a list from another function