moved to template.php