Agree with @mwmiller. The transformations should be outside the `eval` block