evaluate the variable correctly