Adjusting structure (obj -> arrays to maintain order)