trilateration with cuds!!!?!?!?!?!