refact type earray