fixed errors with varlist production