CODE REDUCTION