extracts arrays