Corrected function declaration