[gen.p6] optimization