mode gen correct