correct function typo