refactor transformations.jl