According to the definitions in Sankappanavar's universal algebra :
Assume $p$ is a term, then $p(x_1,x_2,...,x_n)$ indicates that the variables occurring in $p$ are among $x_1,...,x_n$. But there is an ambiguity : when $p=x_1$, for example, we can write it as $p(x_1)$, $p(x_1,x_2)$ and $p(x_2,x_1)$, and so on, but then they correspond to different term functions, say $p[x_1](a)=a$, $p[x_1,x_2](a,b)=a$ and $p[x_2,x_1](a,b)=b$, here I use $p[...]$ to indicate the corresponding $p(x_1,...,x_n)$ expression. So how to deal with such situation?