added update vars