had accidentally moved the code for setting self.patch