revising build of pretti table, 1st draft optimizing/trimming code