refactor api name