describe how to use the generator