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

I've tried to explain before how tire diameter can change with pressure and wheel width...but some folks just don't get it.
Thanks for your help. It's working spot on now!