generate() basic functionality