trying to squash infinite values