small refactoring style code2