updating distribution script