creating nodes properly this time I think