saves matrices now