changed _.isFinite to _.isInfinite