clean up some matrix files