fixing botched clear array attempt