adjust refs on array.range