updated probability generating formula