removed unnecessary doublepatching.