added update function for the interior nodes