handle NaNs gracefully
5.3.2
fix bounds in degenerate case with <=1 input point
revert bad idea