use array as attribute