completed adding update function calls to the API