update Run_gdistance