distances is set in Session.get(\\distances\)