recalculating ERROR_RATE