developed a function to retrieve a specific list from the main list