small refactoring within object creation