some variable optimization