now passing in the entire node object