I am reading the paper by Kuznetsov and Lunts, *Categorical resolutions of irrational singularities*, and I’m struggling with a few things. The definition of gluing of DG-categories $\mathcal{D}\_1$ and $\mathcal{D}\_2$ along a bimodule $\phi \in \mathcal{D}\_2^{op} \otimes \mathcal{D}\_1$ is the following: they say that an element of such a category is a triple $(M\_1, M\_2, \mu)$, with $M\_i \in \mathcal{D}\_i$ and $\mu \in \phi(M\_2,M\_1)$ a closed element of degree zero and then they define the morphisms of degree $k$ between two such triples to be
$$
Hom^k(M\_1,N\_1) \oplus Hom^k(M\_2,N\_2) \oplus \phi^{k-1}(N\_2,M\_1).
$$
My questions are related to this definition: 


1) Can we change the definition of the morphisms and instead of $\phi^{k-1}(N\_2,M\_1)$ put $\phi^{k-1}(M\_2,N\_1)$ (eventually changing the definition of the differentials and the composition law)?


2) The differential is defined in the obvious way in the first two components, while in the third is defined as
$$
-d(f\_{21}) - f\_2 \circ \mu + \nu \circ f\_1
$$
where the map we are considering is $(f\_1,f\_2,f\_{21})$ and the objects are $(M\_1,M\_2,\mu)$, $(N\_1,N\_2,\nu)$. I don’t understand what’s the meaning of the last two pieces, how should I intend the compisition? 
Thanks in advance.


**EDIT:** I understood the answer to question 2, my mistake was that I wasn't taking into account that we were talking about right modules. Still, I'd like to know the answer to question 1.



Definition of gluing of dg categories
This gluing can be viewed as a dg-category of "generalized morphisms". If you take $\mathcal D\_1 = \mathcal D\_2 = \mathcal D$ and $N$ to be the diagonal bimodule, then what you get is the dg-category of morphisms described for example by Drinfeld in *Dg-quotients of dg-categories*. The point is that closed degree $0$ morphisms in this gluing want to model "coherent commutative squares", so that you'll have some $(u,v,h)$ such that $dh = m u - v n$, if $m$ and $n$ are suitable objects of that gluing (forgetting "domains" and "codomains". If you change your definition according to your rule, it seems to me that you have a morphism $h$ which goes in the "wrong direction" and cannot measure anymore the deviation of the square to being commutative.


