wrap pnmixer in an if check