close #49 : generator