a minor bit of code refactoring - the 'node' argument wasn't being used; it was just being treated as a local variable.