change paper_key into id