adding datasource input to generate table