adds pseudocode for generators