generating doub