added tweak to ensure 0 in case of uniformity. Never realized that that
didn't make it into the package version. oops! fixed!