sqrt the dist