corrected function calls