update terminal node