since node and t are output, parameters, let's use pass by reference