run() method refactoring