add patents by modifying papers code