delete unused code in add.php