now attempts to separate distances that are with bulk/surface