avoid boudary condition inf small