delete unuseful parts