finish trace, start generate