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

Look in the service manual and it will explain how to clock the housing for the number of teeth on your gear....
Will do! Thanks...