removed a function from generator