moved var to new context