transformations refactoring