refactoring, writing Transform