First of all, make sure your engine performance is good. Check ignition, fuel line, EGR, oxygen sensor, catalytical converter, etc. If nothing wrong with those components, transmission has problem.