add Generator functions
generators functions added
debug merge test case