fixing np.pmt causing unnecessary warnings issue