make distance argument optional, default to 1kpc