corrected the error of dereferencing node, to be added whenever we are using the value of variable