refactor addItem

refactored addItem to use a series of appends for increased readability