minor style refactoring