update some variable