update vars and var method