exclude infinite in interval