removed old code from template.php