grouped states and resids into contiguous chunks