fixed variable errors, added upate node