move repeatable code into partials