code cleanup and transformation log