easier to understand code for transformations example