made noc and nop more dynamic