tinkering with gdistsamp