matrix checkpoint