split code in partials