updating distribution