modified functions_general.php for override