added table generation