edit func.php