tuning code: not to copy an array, just reset to null.