returning a copy of the array, so it wouldn't release it