switched to live variables