change distance calculation (z*2.6131)