refractired code