rename all "ending" => "to"