original ddl gen from rep