added internal_functions.php