change array structure