delete temp arrays