edits to sampling