What are the requirements for matric rewrite