update distribution code