adding patches