remove unused vars
use NMOD_RED2_pk macro instead of NMOD_RED2_pk_func()