finish check matching