corrected function call