fixed typo in function definition