removed check same matrix as it consumes computation by reverse back to original