using Partials to DRY code