updated the api model