partials refactoring