rewrite Purchase