adding device relationship