>Notice how the second time I do table.remove(t,3) it removes 2 not 3 Curious. If one replaces t[1] = {} t[2] = {} t[3] = {} with t = {{}, {}, {}} it works as expected. Kurt Jung