nit: either remove 'var' or use a known type? (Node?)