update function.php