video stitching func is modified