renaming api to new-function