optimize nextgen