typo in function syntax