testing nearby data formatting
added an edge case for if there is not a closest center