removal of unwanted code