Transformations of rational functions