fix expVar method