refactoring -- creating a partial