use Array type instead of table