update advanced variables