modified functios.php