GNR-7 - optimized code