addItem function done