fixed syntax error in function declaration