put node definition in struct