fixing DDL errors