added functions.inc.php