using np.argmax() instead of find()