Fuel Pump

I have a 2005 chevy impala 3.4. I had the fuel pump replaced in the fuel tank. I have had it back 4 times because the check engine light keeps going on. The mechanic says it is carbon in the fuel tank and it takes time . I am so frustrated. Can anyone help me figure out how to rix the problem. Computer codes says it is infact emissions problem.