removing obsolete patch and cleaning control