to implement view matcher