generated code indentation refactor