replaced speedometer driven gear with recommended 40 tooth and still not accurate...

I didn't read each post in detail, but I didn't see clocking the housing mentioned. Is the housing clocked correctly?
Working perfect now!