delete unuseful lines