finished and ran script to insert merged matrices