is it ``np.clip`` here? If yes, add test for these two lines.