Dear Maryam Haseli, the question is a bit unclear, melamine is hexa-functional, methylolation is a function of the ratio melamine/HCHO, so may be you have to reduce the amount of formaldehyde. The attached study is concerned by HCHO low emission. My Regards
calcium cyanamide was converted into dicyandiamide, which was heated above its melting temperature to produce melamine. Today most industrial manufacturers use urea in the following reaction to produce melamine: 6 (NH2)2CO → C3H6N6 + 6 NH3 + 3 CO.