added method to create unique nodes