cleanup arrays and space bar