now p output mat exported