making private generator