replace generators