changed inf to min b/c set is finite