- removed logging from generate