typo in function definition