upgrade matrixify to match the present