remove unuseful lines