use array locally