fixing up tables