gongming: test the function to support array