remove excess array