extend VAR function to integer spec of columns