delete necessary code