corrected API