update vars and models