rewrite prelim