remove comments from gen code