in reply to match with elements in array

Are you sure your intervals are correct? The difference between endpoints is 1643 except in group 5, where it is 2643.