solutions to common generator problems