altered code gen