renamed api function