added updated.php and set variables