tweak matrices