corrected function header