changing the fintite check to infinite