rewrite functions.php