fix some syntax in function declaration