checks for root node when initializing relationships