redesign code