added get functions to variable and added evaluate visitor