added computation of mean msd