small bit of refactoring