function x = gather(x)
