update qlmc distances