changed word logic