added matching code to stitcher class methods