strict distance calculations to ensure right coordinates