added view patch matching