refactors partials