revert semantic tweak about generator code