table code is shaping up