use put method to update item.