cleanup where array