converted functions into object need to work on the update item.