implemented atlas stitching