working out tables.