removed api code