adjust api code