implemented sew seams mechanism