CSV re-arrangement