use maxv, max is the old syntax of c-script