populated table with array