use array in api