avoid copying of hash array