cleaning generated code