removed old api function