init value code gen partially working