table from array works