adding the way to save nodes with locations