renamed number_of errors for error ordering to work