VAl.php modified