getting a tad closer on template_function.php