straightfoward dist computation