handle ranges of 0