more accurate distance calc