calculate minos errors