changed Rex for Var to have pointer to value. Tests dont work anymore consequently