corrected function api