expose var in index