played with the distance calculation and the mapping