add the cleanupPr method