replaced expectedOffestPair by intermediate parent range