table pulls data from 2d array