added setArray() and its alias values()