adding implementation to UPDATE api call