rename api function