get rid of unwanted code.