remove unwanted code.