updated to use node variable.