update for API