added check if relationship already exists