removed erroneous function call for generator object