minor tweaking + generate on text input G