updated RawDistance