corrected api