model and api updated