update to API