added verbose to gen distance calculations