rearrange container structure