fixed reversed matrices