deletes superfulous array