refactoring client code to call the list components by name