cleanup arrays