added stocktaking generation