fix func.php to have corresponding function names