almost finish the update.php