convert another array format