fixed function typo