creating relationship between nodes