Minimizing errors