remove pre from code generation