small refactoring (move method within class)