replace non-existing base::var by stats::var