I am working on the welding of the dissimiliar metal using 304 and 316
but is that when I am using the buttering layer of filler wire carbon migration didnot stop and result in the formation of so called lower and upper bainite
Could you add a little more detail? Are you welding 304 316 stainless steel to a carbon steel? If so this is typically don with a 309L filler metal unless the ferrite number (FN) of the final weld metal is say less than 5. If it is then a butter on the carbon steel of 309 or 310 can be used. A high Ni weld wire can be used such a ERNiCr or an ERNiCrMo weld wire to weld the joint without a butter pass.
Also make sure your dilution is controlled through weld joint design and good welding procedures that control heat input.
You can use ER316 filler wire as C is less. Also thickness of the plates used and no. of filler weld passes will matter for the desired final state of the microstructure and use of the job conditions.
The structural gradient will definitely get formed. but the migration of carbon will get lowered. you can discuss it with me, when ever you come to malout or telephonically
During dissimilar welding steeper composition gradient remain exist and we can not control it with SS consumables. Ni-base consumables can reduce but can not stop it. Refer the classical article from C D Lundin (welding Journal) and A K Bhaduri (IJPVP). As well as my article from ISIJ.