replaced Node.h with state.h