remove unwanted code