refractoring typo