refactoring in Item class