syntax error in function declaration