added -DNP to compile option