g-machine with updating nodes