refactoring listids to not use an array