Update dist.m