phase1 changes in dispose.php