update to API style