copied array to avoid race conditions during serialization