Refactoring & transform method