more efficient array instantiation, when given an array