remove patches method