fixed matrptr addressing