added processing of distance units in list