reference to avoid copying of array