add fudge to avoid division by zero