add epsilon to ensure values are correct to within 1e-99