updating dist index