updated sample.php to match variables