refactoring methods with incorrect exception handling