I need to make a reaction of amine (R-NH2) with ester in the presence of NaH in order to obtain amide (R-NH-CO-R'-NH2). The point is that ester also carries the NH2 group (H2N-R'-CO2-R''). How to protect the amino group to avoid self-reaction? I think that formation of Schiff base may work (R'''-CH=N-R'-CO2-R'') but need to be sure if the said Schiff base will be stable in the following reactions:
1. R'''-CH=N-R'-CO2-R' + R-NH2 --(NaH, THF)--> R'''-CH=N-R'-CO-NH-R
2. R'''-CH=N-R'-CO-NH-R --(deprotection - HOW?)--> H2N-R'-CO-NH-R