Correctly creating nodes property