finished func.php