Boundary analysis and General Frame Works For Matching