makeTable working with indexes