call np.max instead of max in rcm