table generation added