added max error cap to distance tracker
added max error cap to distance tracker