empirical error-adding function