better formatted matrix