update Check.php