use array to store valuelist