corrected function name in error message