small refactoring a4