code reductions