add boilerplate stuff for picking distance
add some boilerplate
merge conflicts