add logic to update when item already exists