Extract prev1 and prev2