added pct formatting
added matrix formatting