refractoring task