refactoring stronicowania