Trimming render code