improver distance calculations