fasten up eucl-distance, small extensions