updated Run_gdistance
updated Run_gdistance