table generator implemented