fix function declaration typo