part of createSQL