refactoring
items array is unused
refactoring