prepping data for running gdist sampling