invert field in generator