prettify matric