changed model to API