redefine node class