Corrected api calls