modified the gather.php